﻿using System.Web.Mvc;
using MVCStore.Models;

namespace MVCStore.Controllers
{
	[HandleError]
	public class PageController : Controller
	{
		readonly ContentModel _modelProvider = new ContentModel();

		[AcceptVerbs(HttpVerbs.Get)]
		public ActionResult HelpCenter()
		{
			return View("PageContent", _modelProvider.GetHelpCentre());
		}

		[AcceptVerbs(HttpVerbs.Get)]
		public ActionResult PageContent(int pageId)
		{
			return View("PageContent", _modelProvider.GetPageForNodeId(pageId));
		}
	}
}
